<!DOCTYPE html>
<html>

	<head>
		<link rel="stylesheet" type="text/css" href="js/bootstarp-table-1.11.1/bootstrap-table.min.css" />
		<link rel="stylesheet" type="text/css" href="js/bootstarp-3.3.7/css/bootstrap.min.css" />
		<!--<link rel="stylesheet" type="text/css" href="css/myAlert.css" />-->
		<script src="js/jquery/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstarp-3.3.7/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstarp-table-1.11.1/bootstrap-table.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstarp-table-1.11.1/bootstrap-table-zh-CN.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstrap-table-export.js"></script>
		<script src="js/jquery.form.js"></script>
		<script src="js/tableExport.min.js"></script>
		<script src="js/xlsx.core.min.js"></script>
		<script src="js/FileSaver.min.js"></script>
		<meta charset="UTF-8">
		<title></title>
		
		<script>
			$(function() { //, headers: { 'x-requested-with': 'XMLHttpRequest' }
				$.ajaxSetup({
					crossDomain: true,
					xhrFields: {
						withCredentials: true
					}
				});
			});
		</script>
<!--<script type="text/javascript">
	
</script>-->
<script type="text/javascript">
	
</script>
		<script>
			$(function() {
				//查询患者状态为移除的人数  直接加载
				$.ajax({
					type: "get",
					url: "http://localhost:8091/movePerson",
					success: function(data) {
						$("#count").text(data);
					}
				});
				
				
				//模糊查询
	
		


//				//显示已移除的患者的消息
				$("#tablee").bootstrapTable({
					type: "post",
					url: "http://localhost:8091/findss",
				    pageNumber: "1",
					pageSize: "4",
					clickToSelect: true, //是否启用点击选中行
					queryParams: queryParams1,
					columns: [{
						checkbox: true, // 复选框按钮
						visible: 'true', // 
						align: 'center', // 左右居中
						valign: 'middle' ,// 上下居中
					}, {
						field: 'update_time',
						title: '更新时间',
                        align: 'center', // 左右居中
						valign: 'middle', // 上下居中
					}, {
						field: 'name',
						title: '姓名',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
					}, {
						field: 'sex',
						title: '性别',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
						formatter: function(vaule, obj, index) {
							if(obj.sex == 1) {
								return "男";
							} else {
								return "女";
							}
						}
					}, {
						field: 'birthday',
						title: '年龄',
                        align: 'center', // 左右居中
						valign: 'middle', // 上下居中
					}, {
						field: 'mobile',
						title: '电话',
                        align: 'center', // 左右居中
						valign: 'middle', // 上下居中
					}, {
						title: '操作',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
						formatter: function(value, row, index) {
							return '<button type="button" onclick="huifu(' + row.patient_id + ')" class="btn btn-primary glyphicon glyphicon-ok-sign" data-toggle="modal" data-target="#myModall"   ></button>';
						}
					}]
				})
				function queryParams1(params) {
                        var temp = {   //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
                        'names': $("#move").val(),
                    };
                        return temp;
                    };
				
			//显示正常的患者信息
            $(function(){
				$("#table").bootstrapTable({
					type: "post",
					url: "http://localhost:8091/allPatient",
					pagination: true,
					pageNumber: 1,
					pageSize: 5,
					showRefresh: true, //是否显示刷新按钮
					clickToSelect: true, //是否启用点击选中行
					showExport: true, //是否显示导出按钮
					buttonsAlign: "right", //按钮位置
					exportTypes: ['excel'], //导出文件类型
					Icons: 'glyphicon-export',
					queryParams: queryParams,
					columns: [{
						field: 'patient_id',
						title: '患者编号',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
					}, {
						field: 'update_time',
						title: '更新时间',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
					}, {
						field: 'name',
						title: '姓名',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
					}, {
						field: 'sex',
						title: '性别',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
						formatter: function(vaule, obj, index) {
							if(obj.sex == 1) {
								return "男";
							} else {
								return "女";
							}
						}

					}, {
						field: 'birthday',
						title: '年龄',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中

					},{
						field: 'mobile',
						title: '电话',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中

					},  {
						title: '操作',
						align: 'center', // 左右居中
						valign: 'middle', // 上下居中
						formatter: function(value, row, index) {
							//glyphicon glyphicon-remove 移除logo
							//glyphicon glyphicon-update 修改logo
							return '<button type="button" onclick="queryDz(' + row.patient_id + ')" class="btn btn-primary" data-toggle="modal" data-target="#myModal">编辑</button>&nbsp;&nbsp;&nbsp;<button type="button" onclick="set('+row.patient_id+')"  class="btn btn-primary">移除</button>'
						}
					}]
				})
            })
            function queryParams(params) {
            var temp = {   //这里的键的名字和控制器的变量名必须一直，这边改动，控制器也需要改成一样的
                    'name': $("#name").val(),
                    'mobile':$("#mobile").val(),
            }; 
             return temp;
            };
			
//
//			
//			//查看历史病例
//			function chaxun(patient_id) {
//				//alert(patient_id);
//				//var patient_id=$("#patient_id1").val();
//				location.href = "BingLi.html?patient_id=" + patient_id;
//				//	location.href="BingLi.html?patient_id=" + patient_id;
//				/*		$.ajax({
//			type: "post",
//			url: "http://127.0.0.1:8099/",
//			data: {
//				"patient_id":patient_id,
//			},
//				dataType: "json",
//			success: function(obj) {
//          
//			}	
//			
//		});	*/
//			}
//

			//模态框消失事件
			$('#myModal').on('hidden.bs.modal', function() {
				//当模态框消失以后所有文本框清空数据
				document.getElementById("for1").reset();
			}); 
})
		</script>
		<script type="text/javascript">
			function likeAll(){
				$("#table").bootstrapTable("refresh");
			}
		</script>
		<script type="text/javascript">
			function likeAlls(){
				$("#tablee").bootstrapTable("refresh");
			}
		</script>
		<script type="text/javascript">
			//修改患者表
			function update() {
				var patient_id = $("#patient_id1").val();
				var height = $("#height1").val();
				var weight = $("#weight1").val();
				var emergency_contact_name = $("#emergency_contact_name1").val();
				var emergency_contact_relation = $("#emergency_contact_relation1").val();
				var emergency_contact_mobile = $("#emergency_contact_mobile1").val();
				var allergy_info = $("#allergy_info1").val();
				var left_ear_hearing = $("#left_ear_hearing1").val();
				var right_ear_hearing = $("#right_ear_hearing1").val();
				var left_vision = $("#left_vision1").val();
				var right_vision = $("#right_vision1").val();
				var blood_type1 = $("#blood_type1").val();
				var blood_type2 = $("#blood_type2").val();
				var blood_type = "["+blood_type1+","+blood_type2+"]";
				var personal_info = $("#personal_info1").val();
				var family_info = $("#family_info1").val();
				var phone = $("#emergency_contact_mobile1").val();
					 if(!(/^1[34578]\d{9}$/.test(phone))){ 
                        alert("手机号码有误，请重填");  
                        return; 
                    } 
				if(family_info==""||personal_info==""||blood_type==""||right_vision==""||left_vision==""||left_ear_hearing==""||right_ear_hearing==""||height==""||weight==""||emergency_contact_name==""||emergency_contact_relation==""||emergency_contact_mobile==""||allergy_info==""){
					alert("数据不完整！");
					return;
				}
				$.ajax({
					type: "post",
					url: "http://localhost:8091/patient_update",
					data: {
						"patient_id": patient_id,
						"height": height,
						"weight": weight,
						"emergency_contact_name": emergency_contact_name,
						"emergency_contact_relation": emergency_contact_relation,
						"emergency_contact_mobile": emergency_contact_mobile,
						"allergy_info": allergy_info,
						"family_info": family_info,
						"personal_info" :personal_info,
						"blood_type": blood_type,
						"right_vision": right_vision,
						"left_vision": left_vision,
						"right_ear_hearing": right_ear_hearing,
						"left_ear_hearing": left_ear_hearing,
					},
					success: function(data) {
						if(data.msg == "true") {
							alert("保存成功");
							$('#myModal').modal('hide'); 
							$('#table').bootstrapTable("refresh");
							//模态框消失
						} else {
							alert("数据不完整!无法保存");
							$('#myModal').modal('hide'); //模态框消失
						}
					}

				});
			}
		</script>
		<script type="text/javascript">
			//根据id查询患者信息表
			function queryDz(patient_id) {
				var patient_id = patient_id;
				console.log(patient_id);
				$.ajax({
					type: "post",
					url: "http://localhost:8091/getOne",
					data: {
						"patient_id": patient_id,
					},
					success: function(data) {
						if(data.msg == 'true') {
							$("#family_info1").val(data.all[0].family_info);
							$("#patient_id1").val(data.all[0].patient_id);
							$("#name1").val(data.all[0].name);
							$("#sex1 option[value=" + data.all[0].sex + "]").prop("selected", true);
							$("#birthday1").val(data.all[0].birthday);
							$("#height1").val(data.all[0].height);
							$("#weight1").val(data.all[0].weight);
							$("#left_ear_hearing1 option[value=" + data.all[0].left_ear_hearing + "]").prop("selected", true);
							$("#right_ear_hearing1 option[value=" + data.all[0].right_ear_hearing + "]").prop("selected", true);
							$("#left_vision1").val(data.all[0].left_vision);
							$("#right_vision1").val(data.all[0].right_vision);
							$("#mobile1").val(data.all[0].mobile);
							$("#id_card1").val(data.all[0].id_card);
							$("#address1").val(data.all[0].address);
							$("#blood_type1 option[value="+data.all[0].blood_type.charAt(1)+"]").prop("selected",true);
							$("#blood_type2 option[value="+data.all[0].blood_type.charAt(3)+"]").prop("selected",true);
							$("#emergency_contact_name1").val(data.all[0].emergency_contact_name);
							$("#emergency_contact_mobile1").val(data.all[0].emergency_contact_mobile);
							$("#emergency_contact_relation1  option[value=" + data.all[0].emergency_contact_relation + "]").prop("selected", true);
							$("#personal_info1").val(data.all[0].personal_info);
							$("#allergy_info1").val(data.all[0].allergy_info);
						} else {
                            $("#patient_id1").val(data.all[0].patient_id);
							$("#name1").val(data.all[0].name);
							$("#sex1 option[value=" + data.all[0].sex + "]").prop("selected", true);
							$("#birthday1").val(data.all[0].birthday);
							$("#mobile1").val(data.all[0].mobile);
							$("#id_card1").val(data.all[0].id_card);
							$("#address1").val(data.all[0].address);
					}
						}
				});

			}
		</script>
		<!--批量删除-->
		  <script type="text/javascript">
	   function deletes(){
	   		var rows = $("#tablee").bootstrapTable('getSelections');
				console.log(rows);
				if(rows.length==0){
					alert("请选择要删除的内容！");
					return;
				}else{
					var arrays = new Array();
					$($("#tablee").bootstrapTable('getSelections')).each(function(){
						arrays.push(this.patient_id);
					})
					var patient_id = arrays.join(',');
					console.log(patient_id);
					$.ajax({
						type:"post",
						url:"http://localhost:8091/deletes",
						async:true,
						data:"patient_id="+patient_id,
						success:function(data){
							if(data.msg=='true'){
								$("#tablee").bootstrapTable('refresh');
								$("#count").text(data.person)
							}else{
								alert("删除失败！")
							}
							
						},
						error:function(){
							alert("网络延迟....请稍后重试！！！");
						}
					});
				}
	   	}
	   </script>
	   <!--批量恢复-->
	<script type="text/javascript">
	   function recover(){
	   		var rows = $("#tablee").bootstrapTable('getSelections');
				console.log(rows);
				if(rows.length==0){
					alert("请选择要恢复的内容！");
					return;
				}else{
					var arrays = new Array();
					$($("#tablee").bootstrapTable('getSelections')).each(function(){
						arrays.push(this.patient_id);
					})
					var patient_id = arrays.join(',');
					console.log(patient_id);
					$.ajax({
						type:"post",
						url:"http://localhost:8091/recover",
						async:true,
						data:"patient_id="+patient_id,
						success:function(data){
							if(data.msg=='true'){
								$("#tablee").bootstrapTable('refresh');
								$("#myModall").modal("hide");
								$("#table").bootstrapTable('refresh');
								$("#count").text(data.person);
							}else{
								alert("恢复失败！");
							}
						},
						error:function(){
							alert("网络延迟....请稍后重试！！！");
						}
					});
				}
	   	}
	   </script>
	   <!--点击移除按钮移除患者-->
		<script type="text/javascript">
				function set(patient_id) {
				$.ajax({
					type: "post",
					url: "http://localhost:8091/set",
					data: {
						"patient_id": patient_id, 
					},
					success: function(data) {
						$("#count").text(data.person);
						if(data.msg == 'true') {
							alert("移除成功!");
							$('#table').bootstrapTable("refresh");
						}
					}

				});

			}
		</script>
		<style type="text/css">
			#move{
				position: absolute;
				top: 79px;
				right: 120px;
			}
			#aaa{
				position: absolute;
				left: 100px;
			}
		</style>
		
		
		
		<script type="text/javascript">
			function sx() {
				     $('#myModall').modal("show");
				     $("#tablee").bootstrapTable("refresh");
			    }
		</script>
		<style type="text/css">
			#ccc{
				position: absolute;
				top: 0px;
				left:730px;
			}
		</style>
	</head>

	<body>
		<table id="table" class="table table-hover">
			<div class = "row" style="position: relative;top: 60px;left: 150px;">
            <div class="form-group">
            <label for="inputEmail3" class="col-md-1 control-label" style="width: 100px;">患者姓名：</label>
                <div class="form-group col-md-2">
                    <input type="text" class="form-control" id="name">
                </div>
            <label for="inputEmail3" class="col-md-1 control-label" style="position: relative;left: 20px;top: 5px;">电话：</label>
                <div class="form-group col-md-2">
                    <input type="text" class="form-control" id="mobile">
                </div>
                <input type="button" value="查询" class=" btn btn-primary " onclick="likeAll()"/>
                <button  class="btn btn-primary" data-target="#myModall" id="ccc" onclick="sx()">已移除人数(<span id="count">0</span>)</button>
            </div>
             </div>

			<!--<td>	<a href="DangAn.html" class="glyphicon glyphicon-pencil"></a></td>-->
		</table>
		<!-- 患者档案模态框 -->
		<!-- class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"-->
		<div class="modal fade" tabindex="-1" role="dialog" id="myModal">
			<div class="modal-dialog" role="document" style="width:800px">
				<div class="modal-content" style="height: 750px;">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" style="font-size: 24px; color: dodgerblue;">患者基本信息</h4>
					</div>
					<div class="modal-body">
						<form id="for1">
							<div class = "row">
								<div class="form-group">
								<input type="hidden" id="patient_id1" name="patient_id" />
								 <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 50px;">姓名：</label>
                                     <div class="col-md-2">
                                        <input type="text" class="form-control" id="name1" readonly="readonly" style="position: relative;left: -40px;height: 35px;width: 150px;top: -5px;">
                                     </div>
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 40px;">性别：</label>
                                     <div class="col-md-2">
                                        <select id="sex1" class="form-control"  name="sex" style="width: 140px; height: 35px;position: relative;left: -40px;top: -5px;">
                                          <option>请选择</option>		
									      <option value="1">男</option>
									      <option value="2">女</option>
								        </select>
                                     </div>
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" >生日：</label>
                                     <div class="col-md-2">
                                        <input type="date" class="form-control" id="birthday1" name="birthday" style="position: relative;height: 35px;width: 150px;right: 90px;top: -5px;">
                                     </div>     
							</div>
							</div>
							<br />
							<div class = "row">
								<div class="form-group">
								<input type="hidden" id="patient_id1" name="patient_id" />
								 <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 50px;top: -10px;">身高：</label>
                                     <div class="col-md-2">
                                        <input type="text" id="height1" name="height" placeholder="厘米" class="form-control" style="position: relative;left: -40px;top: -15px;width: 150px;"/>
                                     </div>
                                 <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 40px;top: -10px;">体重：</label>
                                     <div class="col-md-2">
                                        <input type="text" id="weight1" name="weight" placeholder="公斤" class="form-control" style="position: relative;left: -40px;top: -15px;width: 140px;"/>
                                     </div>        
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="top: -7px;">血型：</label>
                                     <div class="col-md-2">
                                        <select id="blood_type1" name="blood_type"  style="width: 100px; height: 34px;position: relative;right: 90px;top: -15px;" class="form-control">
                                        	<option>请选择</option>	
								            <option value="1">A</option>
								            <option value="2">B</option>
								            <option value="3">AB</option>
								            <option value="4">O</option>
							            </select>
							            <select id="blood_type2" name="blood_type"  style="width: 100px; height: 34px;position: relative;top: -49px;right: -11px;" class="form-control">
								            <option>请选择</option>	
								            <option value="1">Rh阴性</option>
								            <option value="2">阳性</option>
							            </select>
                                     </div>
							</div>
							</div>
							<br />
							<div class = "row">
								<div class="form-group">
							    <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 20px;top: -50px;">左耳听力：</label>
                                   <div class="col-md-2">
                                    <select id="left_ear_hearing1"  name="left_ear_hearing" style="width: 130px; height: 34px;position: relative;top: -55px;left: -40px;" class="form-control">
                                    <option>请选择</option>	
									<option value="1">正常</option>
									<option value="2">耳聋</option>
								    </select>
                                   </div>
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: -40px;top: -50px;">右耳听力：</label>
                                     <div class="col-md-2">
                                        <select  class="form-control" id="right_ear_hearing1" name="right_ear_hearing" style="width: 130px; height: 34px;position: relative;top: -55px;left: -100px;">
                                          <option>请选择</option>		
									      <option value="1">正常</option>
									      <option value="2">耳聋</option>
								        </select>
                                     </div>
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: -100px;top: -50px;">左眼视力：</label>
                                     <div class="col-md-2">
                                       <input  class="form-control" type="text" id="left_vision1" name="left_vision" style="position: relative;right: 160px;top: -55px;" />
                                     </div>
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 610px;top: -85px;">右眼视力：</label>
                                     <div class="col-md-2">
                                        <input  class="form-control" type="text" id="right_vision1" name="right_vision" style="position: relative;right: -545px;top: -90px;"/>
                                     </div>     
                            </div>
							</div>         
							<br />
							<div class = "row">
								<div class="form-group">
								<label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 50px;top: -80px;">电话：</label>
                                     <div class="col-md-2">
                                        <input  type="text" id="mobile1"  readonly="readonly" class="form-control" style="position: relative;top: -90px;width: 150px;left: -40px;"/>
                                     </div>
                                <label for="inputEmail3"  class="col-md-2 control-label col-lg-offset-1" style="top: -85px;">身份证：</label>
                                     <div class="col-md-2">
                                        <input readonly="readonly" readonly="readonly" class="form-control" type="text" id="id_card1" name="id_card" style="position: relative;left: -70px;top: -90px;width: 170px;"/>
                                     </div>
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 20px;top: -85px;">住址：</label>
                                     <div class="col-md-2">
                                        <input  type="text" id="address1" readonly="readonly" name="address" class="form-control" style="position: relative;right: 55px;top: -90px;width: 150px;"/>
                                     </div>     
						    </div>
							</div>
							<br />
							<div class = "row">
								<div class="form-group">
								<label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: 10px;top: -90px;">紧急联系人：</label>
                                     <div class="col-md-2">
                                        <input  type="text" id="emergency_contact_name1" class="form-control" name="emergency_contact_name" style="position: relative;top: -95px;left: -40px;width: 150px;"/>
                                     </div>
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="top: -90px;">关系：</label>
                                     <div class="col-md-2">
                                <select  id="emergency_contact_relation1" class="form-control" name="emergency_contact_relation" style="width: 140px; height: 35px;position: relative;left: -80px;top: -96px;">
									<option value="1">爸爸</option>
									<option value="2">妈妈</option>
									<option value="3">儿子</option>
									<option value="4">女儿</option>
									<option value="5">亲戚</option>
									<option value="6">朋友</option>
								</select>
                                     </div>     
                                <label for="inputEmail3" class="col-md-2 control-label col-lg-offset-1" style="left: -50px;top: -90px;width: 150px;">紧急联系人电话：</label>
                                     <div class="col-md-2">
                                        <input type="text" id="emergency_contact_mobile1" class="form-control" name="emergency_contact_mobile" style="position: relative;top: -120px;right: -80px;width: 150px;"/>
                                     </div>     
							</div>
							</div>		
							<br />
							<div style="position: relative;top: -150px;">
								<p style="font-size: 20px;color: #007DDB;position: relative;top: 60px;">过敏史：</p>
								<textarea  id="allergy_info1" name="allergy_info" rows="2" cols="80" class="form-control" style="position: relative;top: 60px;"></textarea>
							</div><br />
							<div style="position: relative;top: -150px;">
								<p style="font-size: 20px;color: #007DDB;position: relative;top: 50px;">个人史：</p>
								<textarea id="personal_info1" name="personal_info" rows="2" cols="80" class="form-control" style="position: relative;top: 50px;"></textarea>
							</div><br />
							<div style="position: relative;top: -150px;">
								<p style="font-size: 20px;color: #007DDB;position: relative;top: 30px;">家族史：</p>
								<textarea  id="family_info1" name="family_info" rows="2" cols="80" class="form-control" style="position: relative;top: 30px;"></textarea>
							</div><br />
						</form>
					</div>
					<!-- body内容外 -->
					<div class="modal-footer" style="position: relative;top: -150px;">
						<button type="button" class="btn btn-default" data-dismiss="modal" id="btn3">关闭</button>
						<button type="button" class="btn btn-primary" onclick="update()">保存</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>

		<!-- /.modal -->
		<!-- 患者档案已移除模态框 -->
		 <div class="modal fade" id="myModall" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
		<!--<div class="modal fade" tabindex="-1" role="dialog" id="myModall">-->
			<div class="modal-dialog" role="document">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
						<h4 class="modal-title" style="font-size: 24px; color: dodgerblue;">患者基本信息</h4>
					</div>	
					<div class="modal-body">
						<div align="right">
							<!--<button type="button" class="btn btn-primary  glyphicon glyphicon-remove" data-toggle="modal" data-target="#myModall" onclick="shanchu()"></button>-->
						</div>
						<table id="tablee">
						<div class = "row" style="position: relative;top: 60px;left: 150px;">
                          <div class="form-group">
							 <label for="inputEmail3" class="col-md-1 control-label" style="width: 100px;position: relative;top: -50px;left: -100px;">患者姓名：</label>
                               <div class="form-group col-md-2">
                               <input type="text" class="form-control" id="move_name" style="position: absolute;top: -55px;left: -90px;">
                             </div>
                             
                             </div>
                             <button id="recover" class="btn btn-primary" style="position: relative;top: -70px;right: 80px;" onclick="likeAlls()">查询</button>
                             <button id="recover" class="btn btn-primary" style="position: relative;top: -70px;right: -40px;" onclick="recover()">恢复</button>
                             <button id="deletes" class="btn btn-danger" style="position: relative;top: -70px;right: -50px;" onclick="deletes()">删除</button>
                            </div>
						</table>

					</div>
					<!-- body内容外 -->
					<div class="modal-footer">
						<button type="button" class="btn btn-default" data-dismiss="modal" id="btn3">关闭</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<!-- /.modal -->
	</body>

</html>